DESI DR2 Results II: Measurements of Baryon Acoustic Oscillations and Cosmological Constraints