The Role of Metal-Semiconductor Interface in Halide Perovskite Devices for Radiation Photon Counting.