Lie algebras for systems with mixed spectra. I. The scattering Pöschl–Teller potential