The strong-coupling limit of gauge theories with fermions on a lattice