A covalent bond occurs when