Nadal beats Thiem to win record-stretching 12th French Open title