Theoretical Studies of Absorption, Emission and Gain in Silicon Nanostructures