Competency, coercion, and risk of violence: legal intersects with fundamental issues of mental health