Behavioral measurement of axonal thresholds