Stability of solutions, gels and glasses in the sol-gel glass synthesis