Model calculations for the analysis of scattering data from layered structures