Crosslinking of lyotropic liquid crystals in magnetic fields