Separation of variables and the XXZ Gaudin magnet