Dislocation density reduction through annihilation in lattice-mismatched semiconductors grown by molecular-beam epitaxy