Treatment verification in the presence of inhomogeneities using EPID-based three-dimensional dose reconstruction.