Determinants and consequences of having a sense of purpose in life and at work