How did the COVID-19 pandemic affect the wellbeing of teachers at work?