Effect of the interface structure in multilayered systems on x-ray specular scattering spectra