Development of the high velocity transient field technique and measurement of the 2₁ g factors of ³⁸ ⁴⁰S