Dense nuclear matter and symmetry energy in strong magnetic fields