How are primary immunodeficiencies classified?