Ultrafast synthesis and switching of light polarization in nonlinear anisotropic metamaterials