Structure-property relations in amorphous carbon for photovoltaics