The kinetics of strain relaxation in lattice-mismatched semiconductor layers