Covalent compounds occur __________. between a metal and a nonmetal that share electrons when nonmetals gain or lose electrons only between metals when nonmetals share electrons