How do we know if an atom in a molecule has donated an electron to another atom as in ionic bond or if it is just sharing a valence electron with another atom as in a covalent bond? How does when two atoms approach each other its potential energy decreases in a covalent bond?