Optical detection and spectroscopy of individual nanocrystals