Direct Observation of the Thickness-Dependent Dielectric Response of MoS2 and WSe2