Experimental optimization of an ankle-foot exoskeleton to reduce the metabolic cost of walking for practical applications in healthy and impaired subjects