Djokovic wins Australian Open in longest final