How are metals different from nonmetals? How are they similar?