Effect of lattice relaxation on spin density of nitrogen-vacancy centers in diamond and oscillator strength calculations