Spin squeezing in Bose—Einstein condensates: Limits imposed by decoherence and non-zero temperature