Alteration of behavioral and frontomedial rhythmic activity in demented patients involved in cognitive tasks