Photoemission study of polypyrrole and polyaniline