Theoretical calculation of the absorption spectrum of electrons solvated in molten salts