Shape analysis of wavelength-insensitive grating in the resonance domain