Averaging of systems with fast-varying coefficients and non-small delays with application to stabilization of affine systems via time-dependent switching. (May 2023)