Correlation between the microstructure and optical properties of carbon nitride films deposited by rf magnetron sputtering