How do you determine if an element is metal, nonmetal, or a metalloid?