Physical and cognitive capability in mid-adulthood as determinants of retirement and extended working life in a British cohort study.