Patient characteristics associated with the use of mechanical restraints