Covalent nitrogen doping in molecular beam epitaxy-grown and bulk WSe2