Knowledge based method for touch probe configuration in an automated inspection system