Optical and mechanical properties of dc sputtered carbon films