Factors Associated with Suicidal Behavior of Psychiatric Inpatients