Frontal cationic curing of epoxy resins in the presence of defoaming or expanding compounds