Lattice expansion and superconductivity of Nb3Sn as a function of hydrogen content