Fakhar ton in vain as New Zealand edge out Pakistan by two wickets to win series 2-1