An empirical method to identify patterns in the course of psychotic episodes of people with schizophrenia