Stokes flow through a two-dimensional channel with a linear expansion