Intelligent factories using fuzzy expert systems