Australia's Ash Barty beats home favourite Johanna Konta to win her second WTA title at the Nottingham Open.