Control of bulk superconductivity via surface-bound electric fields in ion-gated niobium nitride thin films