A topological classifier to characterize brain states: When shape matters more than variance