Predictors of social functioning and quality of life in schizophrenia and autism spectrum disorder