Role of Traps in the Photoelectromagnetic and Photoconductive Effects