Misfit dislocation generation mechanisms in heterostructures