Australia, NZ dollars extend gains on oil surge, economic optimism