Applications of Jarzynski's relation in lattice gauge theories