Factors associated with the use and longer duration of seclusion and restraint in psychiatric inpatient settings: a retrospective chart review