Two-Sphere Partition Functions and Gromov–Witten Invariants