Thickness dependence of structure and optical properties of silver films deposited by magnetron sputtering