Tunable ferroelectric polarization and its interplay with spin–orbit coupling in tin iodide perovskites