Wavelet based investigations on removal of ocular artifacts from EEG signals and identification of defects in fabrics and ceramic tiles using statistical approach