Optimal Operation and Control of a Batch Hydrothermal Carbonization Reactor