Preparation of hydroorganogels or organogels