Charge-transfer interaction in liquid-crystalline materials and their application to photonics