Surface anchoring of bent-core mesogens: an X-ray investigation