what are the similarities of metal and nonmetal?