Optical properties of refractory metal based thin films