Using Mean Field Theory to Guide Biofunctional Materials Design