Dimension of spatially embedded networks