Oxidation-reduction chemistry of hydrogen peroxide in aprotic and aqueous solutions