The impact of shifting demographics, variants of concern and vaccination on outcomes during the first 3 COVID-19 waves in Alberta and Ontario: a retrospective cohort study