Biochemical characterization of the tandem HAMP domain from Natronomonas pharaonis as an intraprotein signal transducer