Polarization switching and rotation in KNN-based lead-free piezoelectric ceramics near the polymorphic phase boundary