DFT calculations in periodic boundary conditions of gas-phase acidities and of transition-metal anionic clusters: case study with carboxylate-stabilized ruthenium clusters