Nonlinear optics in metamaterials