Time-dependent density-functional theory for periodic solids: assessment of excitonic exchange–correlation kernels