Mechanisms of Lithium Intercalation and Conversion Processes in Organic–Inorganic Halide Perovskites