Origin of ferroelectric polarization in tetragonal tungsten-bronze-type oxides