Photoeffects to characterise polypyrrole electrodes and bilayers with polyaniline