Numerical analysis of polarization gratings using the finite-difference time-domain method | Synapse