Dynamics of strain relaxation studied by in situ x-ray diffraction immediately after layer heteroepitaxy