Bonding of water ligands to copper and nickel atoms: crucial role of intermolecular electron correlation