Nodal surfaces of Fourier series: Fundamental invariants of structured matter