Modeling and calculation of light absorption in silicon/metal nanocomposites