Nebraska teacher sentenced to 6 years for sex with student