how can i calculate the fractional abundance of HI, HII, H- and e- for hydrogen in the photosphere (T=5770K) and density 10^17?