Spectral neighbor representation for vector fields: Machine learning potentials including spin