Impurity production and plasma performance in ASDEX discharges with ohmic and auxiliary heating