Solar transition zone pressures from EUV observations of O iv and N iv