Six Iranian nationals have been sentenced to 10 years in prison each over charges of espionage and collaboration with the US government.