Electronic structure of hydrofluoride(1-) and hydrochloride(1-) in condensed phases studied by a CASSCF dielectric cavity model