Synthesis and applications of semiconductor nanomaterials in biological imaging and solar light harvesting