Characteristics of Si-doped GaN compensated with Mg