Pattern defect inspection method and apparatus