Photoionization mass spectrometry of kinetic energy-selected ions. An ion retarding potential difference method applied to NO+ and O+ from N2O