Kinetic Monte Carlo simulations of heteroepitaxial growth with an atomistic model of elasticity