Neurocognitive and social functioning in schizophrenia and other diagnoses