Lifetime events and the well-being of older people