Added function to get the type of a phone number