Cointegrations, relative cohomology for comodules, and coseparable corings