Photoelectric Effect Simulation