Foam factory fire blamed on spontaneous combustion