On the production and transfer of entangled electrons and photons