Quantum-chemical study of the interface formed by carboxylic species on TiO2 nanoparticles. 1. Nanoparticle surface