Kiki Bertens won the final of the Madrid Open a year on from her defeat to Petra Kvitova in the Spanish capital's showpiece.