A measure of similarity between optimal and suboptimal muscle force production in gait