Rigidity of 3-colorings of the discrete torus