Gels of rigid polyamide networks