Electron spin contrast of Purcell-enhanced nitrogen-vacancy ensembles in nanodiamonds