Photoabsorption and the unoccupied partial density of states of chemisorbed molecules