Energy as an entanglement witness for quantum many-body systems (15 pages)