Impact of Chlorination Patterns of Naphthalenediimide-Based Polymers on Aggregated Structure, Crystallinity, and Device Performance of All-Polymer Solar Cells and Organic Transistors.