Control of Waste Heat Recovery Systems using Nonlinear Locally Optimal and Machine Learning Methods