Theoretical study on local domain pinning effect due to defect dipole alignment