Text this: Fourier modal method and its applications in computational nanophotonics/