Synthesis and structural characterization of magnesium and titanium siloxanes