Is carbon a metal or nonmetal?