Pattern-equivariant cohomology with integer coefficients