Fourier Modal Method and Its Applications in