Nadal wins US Open after defeating Djokovic