Afghan jailed for 16 years for spying for Iran