Hysteresis in the rhombohedral-orthorhombic phase transition of KNbO3 under inhomogeneous strain