Nitrogen-thermal modification of the bifunctional interfaces of transition metal/carbon dyads for the reversible hydrogenation and dehydrogenation of heteroarenes.