Dosimetric evaluation of a pencil-beam algorithm for electrons employing a two-dimensional heterogeneity correction