The integral cohomology of toric manifolds