Identifying the most effective measures to counter teacher shortages and retain teachers in schools