Lattice QCD in strong magnetic fields