Photogeneration in conducting polymers