Correlation between local structure and film properties in amorphous carbon materials