Observation of Gain on XUV Transitions in Ne-Like and Li-Like Ions