Predictors of quality of life in a longitudinal study of users with severe mental disorders