Shortage of teachers hits rural education