World No. 1 Barty wins Stuttgart title, first player to three titles in 2021