Working conditions mediate the association between social class and physical function in older age in Sweden: a prospective cohort study