Polarons and bipolarons in doped polythiophene: A theoretical investigation