Similar mechanisms underlie curvature comparison by static and by dynamic touch