Greenberger-Horne-Zeilinger theorem for N-partite quDits