Semi-empirical study of chain conformation and absorption spectra of polyanilines: size, solvent and disorder effects