The role of functional surfaces in the locomotion of snakes