A British couple jailed on spying charges in Iran have lost an appeal against their convictions, their family have said.