Kane Williamson's ton powers NZ to first Test series victory