Absorbed dose distribution of electron beams in uniform and inhomogeneous media.