When combining with nonmetallic atoms, metallic atoms generally will