Electronic excitations and the compressibility of deuterium