Design and optimization of chromophores for liquid crystal and photorefractive applications