Charge state switching of the divacancy defect in 4H -SiC