Fifth-seeded Fabio Fognini closed on his first ATP title with victory over Roberto Bautista Agut to reach the Mercedes Cup final.