The association between legal charge and psychiatric diagnosis in a competency-to-stand-trial population