Spin–lattice coupling driven ferroelectric transition in one-dimensional organic quantum magnets