Application of a charge-exchange process to optical diagnostics of the interaction of a laser-generated plasma with a dipole magnetic field