Misfit dislocations in epitaxial heterostructures with different elastic constants of the substrate and epitaxial layer