Analytic Approach to Phase Transitions in Lattice Gauge Theories