StyleX: A Trainable Metric for X-ray Style Distances