Mahan wins WGC-Bridgestone, nails down spot on U.S. Ryder Cup team