determines credit card type