Regulating off-centering distortion maximizes photoluminescence in halide perovskites