Reversible Doping of Semiconductor Films for Electronics