Computational quantum chemistry and adaptive ligand modeling in mechanistic QSAR