Nested algebraic Bethe ansatz for the supersymmetric t -J model and tensor networks