Trapping of near-inertial waves and critical layer formation in baroclinic currents | Synapse