Electron-density measurements in hohlraums using soft-x-ray deflectometry