A 16-year-old boy has been found guilty of attempting to murder a schoolgirl at a Norfolk school after prosecutors said he had planned the stabbing and written about killing people.