Exact and model exchange-correlation potentials for open-shell systems