Studies of Solution-Processed Organic Light-Emitting Diodes and All-Polymer Solar Cells