The Jost function and Siegert pseudostates from R-matrix calculations at complex wavenumbers