when does covalent bonding take place?