Metals, nonmetals, and metalloids are groups of: