Tilted Photoalignment of a Nematic Liquid Crystal Induced by a Magnetic Field