Temporal shifts in safety states through the COVID-19 pandemic: Insights from hidden semi-Markov models