How does Principal Component Analysis (PCA) work, and in what scenarios would you use it for dimensionality reduction?