diminished capacity meaning in law