A Spectral Approach to Network Design and Experimental Design