Ilkay Gundogan says it has been a "total privilege and pleasure" to play for Manchester City after joining Barcelona on a free transfer.