Inverse photoemission from solids: Theoretical aspects and applications