Nutrient exchange in arbuscular mycorrhizal symbiosis from a thermodynamic point of view