Planck intermediate results. LVII. Joint Planck LFI and HFI data processing