Photoassisted growth and nitrogen doping of ZnSe