Collins fragmentation function for pions and kaons in a spectator model