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