Equivalence of multiwave coupled-wave theory and modal theory for periodic-media diffraction | Synapse