Surfactant-induced mesomorphic structures in flexible polymers