Exchange-correlation potentials with proper discontinuities for physically meaningful Kohn-Sham eigenvalues and band structures