Parameters affecting the luminescence of nanodiamond particles: Quantum chemical calculations