Compounds containing peroxide or ozonide groups