Representation of symmetry transformations on the sets of tripotents of spin and Cartan factors