Photodiode circuits for retinal prostheses