A British couple detained in Iran on spying charges have lost their appeal against a 10-year sentence.