Cohomology of tiling spaces: beyond primitive substitutions