Two teenagers have admitted starting a huge fire at a former printworks during last summer's riots - causing widespread disruption and displacing hundreds of people.