Roberto Bautista Agut secured his second ATP title of the year as he defeated Lukas Rosol in three sets to win the Mercedes Cup in Stuttgart on Sunday.