Fishes regulate tail-beat kinematics to minimize speed-specific cost of transport