Synthesis of organic polymer gels in microemulsions and lyotropic mesophases