Electronic localization and optical absorption in embedded silicon nanograins