Automated pattern inspection for circuit pattern of multi-layer thin-film substrate