Pyrolysis of some acrylamido derivatives bearing a heterocyclic group