Synthesis of energetic polyethers from halogenated precursors