Effect of liquid crystal molecular orientation controlled by an electric field on friction