Challenges remain after Mosul liberation: UN envoy