Laminar and weakly turbulent oceanic gravity currents performing inertial oscillations