Quantum electrodynamics of time-varying gratings - PNAS