Tunable and wavelength selective pin photodiode