Development of a parallel electron and photon transport (PMCEPT) code II: Absorbed dose computation in homogeneous and heterogeneous media