The comparative study of structural, electronic, and optical properties of hydrogen peroxide and its dihydrate under pressures: first-principle calculations