Molecular docking investigation and spectral analysis of certain pharmaceutically active compounds using DFT methods