Internal-inertial waves and cross-frontal circulation in the upper ocean