Text this: On obtaining the coupled-mode theory using a model of coupled plane waves for symmetric resonant diffraction gratings