Solvable q-state models in lattice statistics and quantum field theory