Synthesis of metal iodates from an energetic salt