The mental health of NHS staff during the COVID-19 pandemic: a two-wave Scottish cohort study