Holographic confining-deconfining gauge theories and entanglement measures with a magnetic field