Text this: Impacts of the photoactive layer's properties on the performance of organic solar cells and photodiodes based on a novel model