Structural and optical properties of doped amorphous carbon films deposited by magnetron sputtering