Photoionization studies of the atmospherically important species N and OH at the Elettra synchrotron radiation source