Elucidation of the c-di-GMP mediated signaling mechanism in a bacterial transmembrane receptor