Ring opening of heterocycles containing a C–N double bond: a simple synthesis of imides promoted by acyl palladium species