Relativistic Hardy inequalities in magnetic fields