Luminescence quenching as a probe for the local density of electronic excitations in insulators