CuInP2S6 photodetector