Kinetics of Domain Wall Motion in Ferroelectric Switching. I. General Formulation