"the state must prove beyond reasonable doubt the capacity of a child who is years or older but under the age of years to appreciate the difference between right and wrong at the time of the commission of an alleged offence and to act in accordance with that appreciation"