Understanding ground state energies of thiophene and pyridine derivatives through computational methods: A study for photochemical reactivity