Fourier Modal Method for Optical Dipole Radiation in Photonic Structures