Medication adherence and cognitive performance in schizophrenia-spectrum and bipolar disorder: results from the PsyCourse Study