How brain-monitoring tech advances could change the law