KFX can be generated by the KFX Output plugin for calibre, which requires you have Amazon's Kindle Previewer program installed.
Do you need the KFX-only features? KFX is still not understood very well (although there is basic read-only metadata support) and you cannot use it as a backup format.
AZW3 basically does everything an ebook needs to do.