The functional integral formulation of the Schrieffer–Wolff transformation