Photodetectors And Photovoltaic Devices Based On Semiconductor Nanomaterials