The effects of local bond relaxations on the electronic and photocatalysis performances of nonmetal doped 3R–MoS2 based photocatalyst: density functional theory