The energy budget of the transition of a neutron star into the third family branch