Synthesis and spectral characterisation of substituted aryl and heteroaryl compounds as a novel therapeutic agents