Numerical investigation of the hydrodynamics of carangiform swimming in the transitional and inertial flow regimes