An Aspect Oriented Programming-based approach to software development for measurement system fault detection