UN envoy departs Yemen after three-day visit