Characterisation of carbon films containing boron and nitrogen