Methods for the accelerated computation of Green’s functions with 2-D periodicity in layered media