Chemistry of material preparation by the sol-gel process