Thermal annealing induced bicontinuous networks in bulk heterojunction solar cells and bipolar field-effect transistors