A dislocation model for nucleation of domain walls in KNbO3 single crystals