Trainee clinical psychologists' adaptation and professional functioning: a longitudinal study