Versatile synthesis of oxindole-1,3-dicarboxamides