Terrain Recognition and Contact Force Estimation through a Sensorized Paw for Legged Robots