Effective Lagrangian for the Polyakov line on a lattice