Memory effect in poly(4,4′-diakyl-2,2′-bithiophenes) and poly(3-alkylthiophenes)