Tuning exchange bias