Lattice gauge theories: an introduction