Organic liquid-crystal devices based on ionic conductors