An automated method for detection of layer activation order in information processing pathway of rat barrel cortex under mechanical whisker stimulation