Image Processing Algorithms for Automated Analysis of GMR Data from Inspection of Multilayer Structures