Sol-gel processing of carbidic glasses