Cognitive function in euthymic bipolar patients, stabilized schizophrenic patients, and healthy controls