An efficient and green synthesis of phthalide-fused pyrazole and pyrimidine derivatives