The origin of water on earth