Abiogenesis and photostimulated heterogeneous reactions in the interstellar medium and on primitive earth