Dynamical interplay between superconductivity and charge-density-wave: a nonlinear terahertz study of coherently-driven 2H-NbSe2 and La2-xSrxCuO4