Wozniacki beats Jankovic to reach final