Artificial neural network for analysis of EEG, K complex detection and identification of EEG power spectra