Measurement of the inclusive electron spectrum from B meson decays and determination of vertical bar V-ub vertical bar