Research of electronic structures and optical properties of Na- and Mg-doped β-Si3N4 based on the first-principles calculations