A wearable solution for accurate step detection based on the direct measurement of the inter-foot distance