Inspection method and apparatus for circuit pattern