Design and test of a high-resolution EUV spectroheliometer