X-ray integrated intensities from semiconductor substrates and epitaxic layers – a comparison of kinematical and dynamical theories with experiment