Dynamics of charge-density waves in the presence of free carriers