Characterizing bacterial physiology and diversity using microfluidic systems