Theoretical investigations of the g factors and the hyperfine structure constants of the Cr4+ and Mn5+ centrs in silicon