The effect of the active layer thickness on the performance of pentacene-based phototransistors