Ultrafast spectroscopy: principle and applications in semiconductor nanostructures