Footwear dynamics for injury prevention