Text this: Structural control of mixed ionic and electronic transport in conducting polymers