Supervisory control of a heavy-duty diesel engine with an electrified waste heat recovery system