An Iranian court has sentenced two French citizens to a combined 63 years in prison on espionage and national security charges.