Discrete-continuum interaction for the core-hole state of water