Orientation of B-C-N hybrid films deposited on Ni (111) and polycrystalline Ti substrates explored by X-ray absorption spectroscopy