Galliani: 'We had to sell Ibra and Thiago'