Quantum theory of the chemical bond