The defendant was suffering from an abnormality of mental functioning arising from a recognised medical condition, which substantially impaired their ability to understand their conduct, form a rational judgment, or exercise self-control, and provided an explanation for the killing