First-principles study of silicon nanocrystals : structural and electronic properties, absorption, emission, and doping