High-Performance X-ray Detector Based on Single-Crystal β-Ga2O3:Mg.