Wozniacki wins dramatic Australian Open final