A low complexity method for the optimization of network path length in spatially embedded networks