Experimental study of liquid-crystal alignment on a surface relief grating