Calculation of electron beam dose distributions for arbitrarily shaped fields.