Reaction with what causes oxygen ions to compensate for their charge?