First-order equations for gauge fields in spaces of dimension greater than four