Influence of roughness and grain dimension on the optical functions of polycrystalline silicon films