Electronic structure and chemical trans-formations of peroxides