Rapidly Convergent Representations for 2D and 3D Green's Functions for a Linear Periodic Array of Dipole Sources