Scaling of optimal-path-lengths distribution in complex networks.