How carbon vacancies can affect the properties of group IV color centers in diamond: A study of thermodynamics and kinetics