Quartic perfectly matched layers for dielectric waveguides and gratings | Synapse