Polyaniline: conformational changes induced in solution by variation of solvent and doping level