Characterization of highly conducting wire gratings using an electromagnetic theory of diffraction