Advanced Nanomaterials for Solar Cells and Light Emitting Di