Nanomaterials and their optical applications