Achieving spatially precise diagnosis and therapy in the mammalian gut using synthetic microbial gene circuits