Photoionization of N3 + and Ar8 + in an electron beam ion trap by synchrotron radiation