Inspecting the role of synthons in the electronic transition of N-heterocyclic compounds