Former Willmar teacher sentenced to prison in student sex case