Twitter agrees to sell itself to Elon Musk