Principles of flux and concentration sensing in metabolic regulation