Analysis of macroparticle charging in the near-electrode layer of a high-frequency capacitive discharge