Model-Based Optimization of Equipment and Control for Heat-Flux Measurements in a Laboratory Fermenter