Strong spin squeezing induced by weak squeezing of light inside a cavity