Effects of cardiovascular and cerebrovascular health events on work and earnings: a population-based retrospective cohort study