Nanosecond response of organic solar cells and photodetectors