A PWA approach to Takagi-Sugeno fuzzy logic systems