Australia scrape past NZ in women's ODI