Mastery and self-esteem mediate the association between visual acuity and mental health: a population-based longitudinal cohort study