Probabilistic encoding and feature selectivity in the somatosensory pathway