Some aspects of surface roughness in polycrystalline thin films: optical constants and grain distribution