New Zealand beat Pakistan by 138 runs for 2-0 series win