Mechanistic studies of the copolymerization between ethyl diazoacetate and cinnamaldehyde