Deciphering cis-trans directionality and visualizing autophosphorylation in histidine kinases.