Mastercard third-quarter profit rises