Application of a VMI spectrometer to near-threshold photoionization with synchrotron radiation