Engineering a U(1) lattice gauge theory in classical electric circuits