Diagnosing personality disorders in psychiatric inpatients