Decomposition of the interaction energy between metal cations and water or ammonia with inclusion of the counterpoise corrections to the interaction energy terms.