Photochemistry of NH3, CH4 and PH3. Possible applications to the Jovian planets