Viscoelastic flow in a periodically constricted tube: The combined effect of inertia, shear thinning, and elasticity