X-ray absorption studies of phase formation in a Ti/TiN coating on cubic boron nitride