Recovery of platinum from spent catalysts in a fluoride-containing medium