Soft modes in semiconducting SrTiO3: II. The ferroelectric mode