Equivalence of the Siegert-pseudostate and Lagrange-meshR-matrix methods