How is algebraic geometry used in physics?