Atomistic origin of the thermodynamic activation energy for self-diffusion and order-order relaxation in intermetallic compounds I: analytical approach