Celtic have confirmed winger Aiden McGeady has joined Spartak Moscow from Celtic on a four-year contract.