A covalent bond is formed as the result of