UN envoy to Sudan resigns after being declared 'persona non grata'