Nadal wins 10th Barcelona Open title as he sees off Dominic Thiem