Long-lasting effects of affective disorders and childhood trauma on dispositional optimism.