Shedding Light on Electrochemically Doped Semiconductors