Posttraumatic stress disorder, cognitive function and quality of life in patients with schizophrenia