Teacher accused of sexually abusing students avoids jail