Generalized Yang–Mills actions from Dirac operator determinants