E/Z isomerism in polyaniline, a model study