Wavelet analysis of learning and forgetting of photostimulation rhythms for a nonstationary electroencephalogram