Concept of Size-Dependent Atomic Interaction Energies for Solid Nanomaterials: Thermodynamic and Diffusion Aspects