Degrees of freedom of large planar wireless networks embedded in a 3D domain