The influence of partial ionization and scattering states on the solar interior structure