Nonlinear Optics of Photonic Crystals and Meta-Materials