Expert system for the optimum design of measurement systems