Discontinuities of the exchange-correlation kernel and charge-transfer excitations in time-dependent density-functional theory