Text this: Energy accounting in AC substations in case of transit currents flowing through the contact network