Torque control for diesel mechanical and hybrid propulsion on naval vessels