Tunable magnetic field effects on the near-field radiative heat transfer in planar three-body systems