Theoretical studies on the form and effect of N-doping in an ZnGa2O4 photocatalyst