Kinetic Control of Cycloaddition Reaction in Hybrid Metal Halide Perovskitoids for Tunable Photomechanical and Photochromic Response