Optimization of waste heat recovery from the exhaust gas of marine diesel engines