On the spectrum of hypergraphs