If a person committed a crime while in a state of limited sanity, can the court take this condition into account when determining punishment and apply coercive medical measures? For example, if a person suffers from schizophrenia and committed a serious crime.