Italian Jannik Sinner became the youngest champion on the ATP Tour since 2008 as he won a tense Sofia Open final.