Half-filled Hubbard ring with alternating site potentials in a magnetic field