Mechanisms of strain relaxation in III–V semiconductor heterostructures