A supply teacher secretly filmed up schoolgirls' skirts while working in classrooms across Greater Manchester and used artificial intelligence to create sexualised images of children.