Nice terror attack defendants get 2 to 18 years in prison