An ex-ASML employee has been sentenced to three years imprisonment for sharing company secrets with a Russian contact.