Bound state representation of scattering solutions