Electronic and optical properties of silicon nanocrystals: structural effects