Scattering theory of topological phases in discrete-time quantum walks