Rafael Nadal beats Dominic Thiem to win 12th French Open title