Enhanced ion acceleration due to high-shear tangential discontinuities upstream of quasi-perpendicular shocks