A Boundary Perturbation Method for Vector Electromagnetic Scattering from Families of Doubly Periodic Gratings