Efficient and robust detection of multipartite Greenberger-Horne-Zeilinger-like states