compare the ways in which the element sodium and carbon form chemical bonds