Compare the properties of metals and nonmetals.