Spin squeezing via quantum feedback