Refactored photon chain generation in new JO
This is technical MR. Photon chain setup was refactored (each step is configured by a separate function). In Electron generation respective function were moved out of the scope of generateChains for a better modularity.