Halide-modulated self-assembly of metal-free perovskite single crystals for bio-friendly X-ray detection