Characteristics of p-type Mg-doped GaS and GaSe nanosheets.