Correlation between optical defect density and spin density in amorphous silicon carbide