Structural and functional characterization of bacterial cyclic-di-AMP signaling pathways