Polarization dynamics and non-equilibrium processes in ferroelectric switching