Novel Recyclable Catalysts for Selective Synthesis of Substituted Perimidines and Aminopyrimidines