what are the role of the electrons in ionic bonds,covalent bonds and metallic bonds