Bonding between metals and nonmetals