is carbon a metal, nonmetal or metalloid