The molecular mechanism for ionic stress sensing and adaptation in mammalian cells