tools/mtd-utils: add EOF marker support to libubigen/ubinize