Spontaneous doping of two-dimensional NaCl films with Cr atoms: Aggregation and electronic structure