Ion penetration in conjugated polymers : connecting structural effects and electronic transport