Depolarization effects during charge exchange of a polarized tandem beam