NZ beat Australia in Netball World Cup thriller