Scattering theory on graphs