Effects of titanium and aluminum incorporations on the structure of boron nitride thin films