Qudits for witnessing quantum-gravity-induced entanglement of masses under decoherence