Physical properties of boron-nitride and carbon-nitride films deposited by sputtering