Preparation and Properties of Resorcinol–Formaldehyde Organic and Carbon Gels