Perovskite: Scintillators, direct detectors, and X-ray imagers