A dangerous teenager who “inexplicably” stabbed a schoolboy in a Bradford park has been handed an extended sentence of more than nine years by the city’s most senior judge.