Flights to the Middle East have been cancelled or diverted in the wake of US and Israeli airstrikes on Iran.