Multipartite entanglement in quantum spin chains