Cohomology theories based on Gorenstein injective modules