Observed heights of EUV lines formed in the transition zone and corona