Shortest paths on systems with power-law distributed long-range connections