Systematic approach for dissecting the molecular mechanisms of transcriptional regulation in bacteria