Stable and efficient evaluation of periodized Green's functions for the Helmholtz equation at high frequencies