Wave propagation in a stratified layer via the matricant