Photoproduction of pions from H3 and He3