Doping and dedoping processes in poly (3-alkylthiophenes)