Photolysis of CH4-NH3 mixtures and PH3 as models for the photochemical transformations on the primitive earth and Jupiter