Front pinning in capillary filling of chemically coated channels.