Occupied and unoccupied states of the organic infrared emitters Yb- and Er-tris(8-hydroxyquinoline) studied by photoemission and X-ray absorption