A miniaturized culture platform for control of the metabolic environment