Removal of platinum from water by precipitation or liquid–liquid extraction and separation from gold using ionic liquids