From Transistors to Phototransistors by Tailoring the Polymer Stacking