Normalizing flows for lattice gauge theory in arbitrary space-time dimension