Quantum-chemical studies of the structure and reactivity of carbenes