Localization of the dry electron by OH and OD groups in alcoholic and in aqueous systems