Thermodynamic efficiency of interactions in self-organizing systems