Theoretical comparison among perovskite, Si and α-Se based x-ray detectors