Integral cohomology of singular toric varieties