Twitter posts $536M loss in third quarter