Depletion, Depolarizing Effects and Switching in Ferroelectric Thin Films