Velocity and turbulence structure of density currents and internal solitary waves: potential sediment transport and the formation of wave ripples in deep water