Sociodemographic and clinical variables associated with discharge under compulsory treatment orders