Studying And Controlling The Structure Of Doped Semiconducting Polymers