Capillary-lubrication force exerted on a two-dimensional particle moving towards a thin fluid film