US Navy veteran detained in Iran gets 10 years in prison, lawyer says