Application of electronic diaries in patients with schizophrenia and bipolar disorders.