Density-dependent K− nuclear optical potentials from kaonic atoms