Real-time brain-state dependent research