Calculation of the photoelectric effect in silicon