Measurement of the electron energy spectrum and its moments in inclusive B -> X e nu decays