Di-ureasil ormolytes doped with Mg2+ ions: Part 2. Cationic and anionic environments