Trajectory analysis of high-order-harmonic generation from periodic crystals