Nonlocal order in gapless systems: entanglement spectrum in spin chains.