Field analysis of two-dimensional focusing grating