Efficient computation of the periodic Green's function in layered dielectric media | Synapse