Competence of mentally ill patients: a comparative empirical study