Magnetocaloric effect and critical behavior in arylamine-based copper chloride layered organic-inorganic perovskite