Functional principles of whisker-mediated touch perception