Integrating photodiode