Visualizing the state space of quantum trits, quadits, and pairs of qubits via toral geometry