Dynamic characterization of bacterial optogenetic sensors and their use in manipulating the gut microbiome to extend host longevity