Andrey Rublev overcomes a bout of illness to beat Felix Auger-Aliassime in three sets to win the Madrid Open title.