Crystal structures, phase-transition, and photoluminescence of rare earth carbodiimides.