Lattice Bisognano-Wichmann modular Hamiltonian in critical quantum spin chains