Charge Dynamics in near-Surface, Variable-Density Ensembles of Nitrogen-Vacancy Centers in Diamond.