Clustering effects in polyaniline chains