Kinetic Monte Carlo simulations of dislocations in heteroepitaxial growth