Switching dynamics in ferroelectric P(VDF-TrFE) thin films