Self-trapping in quasi-one-dimensional electron- and exciton-phonon systems.