Thomas precession, Wigner rotations and gauge transformations