A first-principle calculation of the XANES spectrum of Cu2+ in water