Effect of doping on polarization profiles and switching in semiconducting ferroelectric thin films