Scattering theory of topological invariants in nodal superconductors