Rescue workers in Mexico City are racing to find survivors after a 7.1 magnitude earthquake caused a school to collapse.