Optimization of fuzzy systems by approximation of fuzzy relations