Mechanism of liquid crystal alignment on submicron patterned surfaces