Dimensions of suicidal ideation in psychiatric inpatients