Template directed perovskite X-ray detectors towards low ionic migration and low interpixel cross talking | Synapse