Qudits of composite dimension, mutually unbiased bases and projective ring geometry