Two British friends who were working in the United Arab Emirates (UAE) died after going for a hike on a hot day in a “wholly mountainous region” of the country, an inquest heard.