Nonlinear Photonic Crystals Toward All-Optical Technologies