A proximity sensor for the measurement of the inter-foot distance in static and dynamic tasks