Bi-level optimization of the energy recovery system from internal combustion engines of a cruise ship