The role of electron scattering in x-ray reflection-masks