Synthesis and characterization of heterocyclic compounds derived from cycloalkanones and their fused analogues