Rafael Nadal extended his winning streak to 15 matches as he downed Dominic Thiem to win the Madrid title.