Energy deposition of electrons in low-, medium- and high-Z material: Comparison of the Monte Carlo transport code EGS4 with experiment