Using the kinematic Sunyaev-Zeldovich effect to determine the peculiar velocities of clusters of galaxies