Stagnation-point flow of upper-convected Maxwell fluids