Measurement of the electron density distribution in plasmas from the bending of a gas laser beam