In Reaction D, compounds represented by graphic formulae XIII (wherein M is oxygen, nitrogen, sulfur, methylene, mono- or di-substituted methylene and R represents potential substituents to the A group) and an acyl compound XIV are dissolved in a solvent, such as carbon disulfide or methylene chloride, in the presence of a Lewis acid, such as aluminum chloride, to form the corresponding substitut