Modeling of Threading Dislocation Density Reduction in Heteroepitaxial Layers