Port of elf2uf2 to rust

Original at https://github.com/raspberrypi/pico-sdk/tree/master/tools/elf2uf2