Biosensor-enabled pathway optimization in metabolic engineering.