Nicholas Prosper, 19, wanted to become UK’s worst mass school killer with shooting attack on his former primary, court told