A UNIFYING MODEL FOR CHEMICAL AND COLLOIDAL GELS