Permanent Electrochemical Doping of Quantum Dots and Semiconductor Polymers