Nanocrystalline silicon films as multifunctional material for optoelectronic and photovoltaic applications