Intermittency-driven complexity in the brain: towards aa general purpose event detection alggorithm