Optical Theorem and Forward Scattering Sum Rule for Periodic Structures