Twitter Nears a Deal to Sell Itself to Elon Musk