Anisotropic liquid penetration arising from a cross-sectional wettability gradient