Quantum chemical and spectroscopic investigations of substituted quinoline, azatricyclo and pyrazine carboxamide derivatives