Former Navasota teacher to spend 2 years in prison