Three teenagers have been charged after the stabbing of a 17-year-old boy near Leeds.