Photonic Metamaterials: From Linear to Nonlinear Optics