Inverse scattering in a stratified medium