Comparison of radiation damage effects in organic and silicon photodetectors