Gravar-mail: Kohn–Sham approach to quantum electrodynamical density-functional theory: Exact time-dependent effective potentials in real space