A procedure for measuring the helium density and pressure in nanometre-sized bubbles in irradiated materials using electron-energy-loss spectroscopy