Pre-Processing Tools and Intelligent Systems Applied to Power Quality Analysis