What factors should be considered when selecting the right type of shoe for a specific activity, such as running or hiking?