Optical properties of granular magnesium films