X-ray probing of surface anchoring in films of bent-core liquid crystals