Electron density measurements in a magnetically insulated ion diode