Ion, solvent and polymer dynamics in polyaniline conducting polymer films