Effect of dimensionality on the charge-density wave in few-layer 2 H-NbSe2