Russian Karen Khachanov produced a stirring fightback to clinch his first ATP title with a 6-7(4) 7-6(3) 6-3 win in the final of the inaugural Chengdu Open.