Spin susceptibility of interacting electrons in one dimension: Luttinger liquid and lattice effects