Characterization and design of two-dimensional electromagnetic band-gap structures by use of a full-wave method for diffraction gratings