Learning simple heuristic rules for classifying materials based on chemical composition