Silicon oxycarbide glasses from sol-gel precursors