Accurate and efficient spin integration for particle accelerators