Variational hysteresis and photoresponse behavior of MAPbX 3 (X = I, Br, Cl) perovskite single crystals