photoelectric effect simulation