A study of brainwaves entrainment based on eeg brain dynamics