Artificial Intelligence in Spectroscopy: Advancing Chemistry from Prediction to Generation and Beyond