Djokovic outlasts Wawrinka in Melbourne