Modeling transient flow behavior of a horizontal well in a coal seam