UN envoy says Sudan’s warring sides agree to negotiate