Charge-induced modulation of magnetic interactions in a [2 × 2] metal-organic grid complex