A quasi-analytic model of a linear Stark accelerator/decelerator for polar molecules