Detecting genuine multipartite entanglement