Pressure and temperature dependence of the zero-field splitting in the ground state of NV centers in diamond: A first-principles study